﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <link href="/xiaozu/css/main.css" rel="stylesheet" type="text/css" />

</head>

<body>
<h1 class="h1_style"><i class="i_h1"></i>酒店详情</h1>
<div class="div_left">

        <p class="form_p"><label class="form_label">编号：</label><input value="${room.ho_room_id}" name="ho_room_id" type="text" class="form_input readonly" readonly="readonly"><i class="i_start"></i><a class="a_note">自动生成</a> </p>
        <p class="form_p"><label class="form_label">酒店名称：</label><input value="${room.ho_room_name}" name="ho_room_name" type="text" class="form_input " minlength="2"  required ><i class="i_start"></i> </p>
        <p class="form_p"><label class="form_label">星级：</label>
            <select class="form_select" style="padding-left: 1%;" name="ho_room_star">
                <option value="1" <c:if test="${room.ho_room_star == 1}">selected="selected"</c:if>>1星</option>
                <option value="2" <c:if test="${room.ho_room_star == 2}">selected="selected"</c:if>>2星</option>
                <option value="3" <c:if test="${room.ho_room_star == 3}">selected="selected"</c:if>>3星</option>
                <option value="4" <c:if test="${room.ho_room_star == 4}">selected="selected"</c:if>>4星</option>
                <option value="5" <c:if test="${room.ho_room_star == 5}">selected="selected"</c:if>>5星</option>
                <option value="0" <c:if test="${room.ho_room_star == 0}">selected="selected"</c:if>>无</option>
            </select>
        </p>
        <p class="form_p"><label class="form_label">酒店总房间数：</label><input name="ho_room_number" value="${room.ho_room_number}" type="text" class="form_input " minlength="2"  required ><i class="i_start"></i></p>
        <p class="form_p"><label class="form_label">类型：</label>
            <input name="ho_room_type" value="1" type="radio" class="form_check" <c:if test="${room.ho_room_type == 1}">checked="checked"</c:if>/><a class="form_a">星级酒店</a>
            <input name="ho_room_type" value="2" type="radio" class="form_check" <c:if test="${room.ho_room_type == 2}">checked="checked"</c:if>/><a class="form_a">快捷酒店</a>
            <input name="ho_room_type" value="3" type="radio" class="form_check" <c:if test="${room.ho_room_type == 3}">checked="checked"</c:if>/><a class="form_a">商务酒店</a>
            <input name="ho_room_type" value="4" type="radio" class="form_check" <c:if test="${room.ho_room_type == 4}">checked="checked"</c:if>/><a class="form_a">其他</a>
        </p>
        <p class="form_p"><label class="form_label">责任人：</label><input value="${room.ho_room_person}" name="ho_room_person" type="text" class="form_input " minlength="2"  required ><i class="i_start"></i></p>
        <p class="form_p"><label class="form_label">责任人身份证号码：</label><input value="${room.ho_room_IDcard}" name="ho_room_IDcard" type="text" class="form_input " minlength="2"  required ><i class="i_start"></i></p>
        <p class="form_p"><label class="form_label">联系电话：</label><input type="text" name="ho_room_phone" value="${room.ho_room_phone}" class="form_input " minlength="2"  required ><i class="i_start"></i></p>
        <p class="form_p"><label class="form_label">详细地址：</label><input type="text" name="ho_room_adress" value="${room.ho_room_adress}" class="form_input " minlength="2"  required ><i class="i_start"></i></p>
        <p class="form_p"><label class="form_label">建立时间：</label><input  name="ho_room_buildTime" value="${room.ho_room_buildTime}" class="form_date" id="demo"/></p>
        <p class="form_p"><label class="form_label">酒店图片：</label><input type="button" value="加载图片" class="but_close"></p>
        <p class="form_p"><label class="form_label a_area">备注：</label><textarea  name="ho_room_remarks" class="text_area1" >${ho_room_remarks}</textarea></p>
    <div class="clear"></div>

</div>


<div class="clear"></div>

<script src="/xiaozu/js/jquery.js"></script>

<script src="/xiaozu/js/date/js/laydate.js"></script>
<script src="/xiaozu/js/jquery-validation-1.14.0/dist/jquery.validate.min.js" charset="utf-8"></script>
<script src="/xiaozu/js/jquery-validation-1.14.0/dist/localization/messages_zh.js" charset="utf-8"></script>
<script>

    !function () {
        laydate.skin('danlan'); //
        laydate({ elem: '#demo' });
        laydate({ elem: '#demo1' }); //
    } ();
</script>
<script >
    /*$.validator.setDefaults({
        submitHandler: function () {
            alert("修改成功!");
            window.parent.layer.closeAll();
        }
    });*/
    $().ready(function () {
        $(".form_b").validate();
    });
</script>

</body>
</html>
